package exam.bean;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;
import java.util.List;

public class PaperInfo {
    private Integer id;
    private String paperName;
    private int level;
    private String retrieval;
    private String firstAuthor;
    private String correspondingAuthor;
    private String otherAuthor;
    private int ranking;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date publishDate;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date employmentDate;
    private String unitSelf;
    private Integer unitSelfId;
    private String projectNum;
    private String projectId;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date enterTime;
    private Integer enterUserId;
    private int flag;


    private String levelStr;
    private List<UtilFiles> utilFiles;   //附件
    private List<MultipartFile> files;

    private String enterStr;     //录入人名称
    private String projectName;

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getEnterStr() {
        return enterStr;
    }

    public void setEnterStr(String enterStr) {
        this.enterStr = enterStr;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPaperName() {
        return paperName;
    }

    public void setPaperName(String paperName) {
        this.paperName = paperName;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getRetrieval() {
        return retrieval;
    }

    public void setRetrieval(String retrieval) {
        this.retrieval = retrieval;
    }

    public String getFirstAuthor() {
        return firstAuthor;
    }

    public void setFirstAuthor(String firstAuthor) {
        this.firstAuthor = firstAuthor;
    }

    public String getCorrespondingAuthor() {
        return correspondingAuthor;
    }

    public void setCorrespondingAuthor(String correspondingAuthor) {
        this.correspondingAuthor = correspondingAuthor;
    }

    public String getOtherAuthor() {
        return otherAuthor;
    }

    public void setOtherAuthor(String otherAuthor) {
        this.otherAuthor = otherAuthor;
    }

    public int getRanking() {
        return ranking;
    }

    public void setRanking(int ranking) {
        this.ranking = ranking;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public Date getEmploymentDate() {
        return employmentDate;
    }

    public void setEmploymentDate(Date employmentDate) {
        this.employmentDate = employmentDate;
    }

    public String getUnitSelf() {
        return unitSelf;
    }

    public void setUnitSelf(String unitSelf) {
        this.unitSelf = unitSelf;
    }

    public String getProjectNum() {
        return projectNum;
    }

    public void setProjectNum(String projectNum) {
        this.projectNum = projectNum;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public Date getEnterTime() {
        return enterTime;
    }

    public void setEnterTime(Date enterTime) {
        this.enterTime = enterTime;
    }

    public Integer getEnterUserId() {
        return enterUserId;
    }

    public void setEnterUserId(Integer enterUserId) {
        this.enterUserId = enterUserId;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getLevelStr() {
        return levelStr;
    }

    public void setLevelStr(String levelStr) {
        this.levelStr = levelStr;
    }

    public List<UtilFiles> getUtilFiles() {
        return utilFiles;
    }

    public void setUtilFiles(List<UtilFiles> utilFiles) {
        this.utilFiles = utilFiles;
    }

    public List<MultipartFile> getFiles() {
        return files;
    }

    public void setFiles(List<MultipartFile> files) {
        this.files = files;
    }

    @Override
    public String toString() {
        return "PaperInfo{" +
                "id=" + id +
                ", paperName='" + paperName + '\'' +
                ", level=" + level +
                ", retrieval='" + retrieval + '\'' +
                ", firstAuthor='" + firstAuthor + '\'' +
                ", correspondingAuthor='" + correspondingAuthor + '\'' +
                ", otherAuthor='" + otherAuthor + '\'' +
                ", ranking=" + ranking +
                ", publishDate=" + publishDate +
                ", employmentDate=" + employmentDate +
                ", unitSelf='" + unitSelf + '\'' +
                ", projectNum='" + projectNum + '\'' +
                ", projectId='" + projectId + '\'' +
                ", enterTime=" + enterTime +
                ", enterUserId=" + enterUserId +
                ", flag=" + flag +
                ", levelStr='" + levelStr + '\'' +
                ", utilFiles=" + utilFiles +
                ", file=" + files +
                ", enterStr='" + enterStr + '\'' +
                '}';
    }

    public Integer getUnitSelfId() {
        return unitSelfId;
    }

    public void setUnitSelfId(Integer unitSelfId) {
        this.unitSelfId = unitSelfId;
    }
}
